import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.springhone.side.domain.Joke;
import com.springhone.side.service.JokeService;



public class Test {

    @org.junit.Test
    public void testAop() {
        ApplicationContext act = new ClassPathXmlApplicationContext("applicationContext.xml");
        JokeService jokeSerivce = (JokeService) act.getBean("jokeService");
        Joke joke = new Joke();
        jokeSerivce.saveJoke(joke);
    }
}
